import request from "./request"

// 登录请求
export const LoginApi = (params) => request.post("pc/platform_login/", params)

//首页
export const HomesApi = (params) => request.get(`pc/homes/`,{params})
//分类
export const TagsApi = (params) => request.get(`pc/tags/`,{params})
//标签
export const TypesApi = (params) => request.get(`pc/types/`,{params})
//获取书列表
export const BooksApi = (params) => request.get(`pc/books/`,{params})
//获取书籍介绍
export const BooksdetailApi = (params) => request.get(`pc/booksdetail/${params.id}/`)
//获取书第一章和总章节
export const FirstsectionApi = (params) => request.get(`pc/firstsection/`,{params})
//获取书目录
export const CataloguesinglebookApi = (params) => request.get(`pc/cataloguesinglebook/`,{params})
//获取书排行版
export const RankingsApi = (params) => request.get(`pc/rankings/`,{params})
//获取书内容
export const ContentsingleApi = (params) => request.get(`pc/contentsingle/`,{params})
//获取书籍
export const BookshelfsApi = (params) => request.get(`pc/bookshelfs/`,{params})
//获取书本是否加入书架书籍
export const BookshelfbybookApi = (params) => request.get(`pc/bookshelfbybook/`,{params})
//配置 关于我们
export const ConfigsApi = (params) => request.get(`pc/configs/`,{params})
// 增加书架信息
export const BookshelfsPostApi = (params) => request.post("pc/bookshelfs/", params)
// 移出书架信息
export const BookshelfsremoveApi = (params) => request.post("pc/bookshelfs_remove/", params)

// 漫画接口
// 漫画内容
export const ContentsingleMhApi = (params) => request.get("contentsingle/", {params})
// 漫画目录
export const ContentsingleBookApi = (params) => request.get("cataloguesinglebook/", {params})
